

export  const getCode = (url:string) => {
    // const appid = "wx4754a2bb841ba595"
    const appid = "wx4754a2bb841ba595"
    window.location.href =
        `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=` +
        encodeURIComponent(url) +
        "&response_type=code&scope=snsapi_base&state=1&connect_redirect=1#wechat_redirect";
}



